<x-layout>
    <x-slot:title>
        Custom Title
    </x-slot>
    @foreach ($tasks as $task)
        <div class="red">{{ $task['name'] }}</div>
    @endforeach
</x-layout>